home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6037 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.mindlink.net!news
  2. From: genew@mindlink.bc.ca (Gene Wirchenko)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Looking for a clear screen function
  5. Date: Thu, 22 Feb 1996 06:59:46 GMT
  6. Organization: MIND LINK! - British Columbia, Canada
  7. Message-ID: <4gh4ec$gsj@fountain.mindlink.net>
  8. References: <4gaeba$d9h@nkosi.well.com> <3129AC77.5F25@fokus.gmd.de>
  9. NNTP-Posting-Host: line172.nwm.mindlink.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Watson <sayegh@fokus.gmd.de> wrote:
  13.  
  14. >rickyarm@well.com wrote:
  15. >> 
  16. >> Hello there,
  17. >> 
  18. >> Does anyone know of a clear screen function to use both in turboC++ on
  19. >> a PC and one to use in standard C for Unix machines
  20.  
  21. >#include<stdio.h>
  22. >for (int i=0;i<25;i++)
  23.       ^^^
  24.      What's this doing here?
  25.  
  26. >    printf("\n");
  27.  
  28. >This works at least on a screen with 25
  29. >lines :-)
  30.  
  31.      Nope.  It only works if the cursor is on the bottom line and if
  32. the screen scrolls.
  33.  
  34. >There's no standard function to clear
  35. >the screen. In TurboC I guess it's clrscr()
  36. >(prototyped in <conio.h>), with Unix it's
  37. >clear()/wclear() (<curses.h>).
  38. >-- 
  39. >*    Greetinx from Watson (sayegh@fokus.gmd.de)
  40. >    http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
  41. >    signal(SIGSEGV,SIG_IGN);
  42.  
  43. Sincerely,
  44.  
  45. Gene Wirchenko
  46.  
  47. C Pronunciation Guide:
  48.      y=x++;     "wye equals ex plus plus semicolon"
  49.      x=x++;     "ex equals ex doublecross semicolon"
  50.  
  51.